package com.ruoyi.standingbook.sanitationvehicle;

/**
 * 用于判断
 */
public enum ItemEnum {
    IO8("vehiclePaintworkStatus", "vehicle_paintwork_status", "整车漆面", 6),
    IO9("licensePlateStatus", "license_plate_status", "车牌清晰完整", 7),
    I10("bumperStatus", "bumper_status", "保险杠/安全护杠", 8),
    I11("appearanceStatus", "appearance_status", "车容干净整洁", 9),
    I12("airtightTransStatus", "airtight_trans_status", "垃圾密闭收运", 10),
    I13("cansClosedStatus", "cans_closed_status", "装载垃圾桶密闭", 11),
    I14("dressBehaviorStatus", "dress_behavior_status", "驾驶员着装与行为规范", 12),
    I15("hornWiperStatus", "horn_wiper_status", "喇叭、刮水器中控锁", 13),
    I16("gasPedalStatus", "gas_pedal_status", "转向离合器变速器油门踏板制动", 14),
    I17("lubricantStatus", "lubricant_status", "机油刹车油变速箱油动力转向油", 15),
    I18("coolantStatus", "coolant_status", "燃油润滑油冷却液", 16),
    I19("waterVolumeStatus", "water_volume_status", "散热器水量", 17),
    I20("reflectingBoardStatus", "reflecting_board_status", "反光板/反光锥", 18),
    I21("tripodStatus", "tripod_status", "三脚架/雪糕筒", 19),
    I22("safetySignsStatus", "safety_signs_status", "全车安全警示标识", 20),
    I23("reflectingMirrorStatus", "reflecting_mirror_status", "反光镜及盲区后视镜", 21),
    I24("extinguishersStatus", "extinguishers_status", "车载灭火器完好、有效", 22),
    I25("tiresStatus", "tires_status", "轮胎有无开裂或鼓包", 23),
    I26("brakeStatus", "brake_status", "油刹汽刹", 24),
    I27("rearviewMirrorStatus", "rearview_mirror_status", "后视镜完好", 25),
    I28("steeringWheelsStatus", "steering_wheels_status", "方向盘、仪表盘显示正常", 26),
    I29("brakePedalStatus", "brake_pedal_status", "电门踏板、制动踏板正常", 27),
    I30("hornStatus", "horn_status", "喇叭、雨刮正常", 28),
	
    I31("lampStatus", "lamp_status", "远光灯、近光灯、转向灯正常", 29),
    I32("hydraulicElevatorStatus", "hydraulic_elevator_status", "液压部分升降是否正常", 30),
    I33("alcoholTestStatus", "alcohol_test_status", "酒精测试结果", 31),
    I34("licensePlateStatus1", "license_plate_status1", "车辆牌照齐全", 32),
    I35("driverLicenseStatus", "driver_license_status", "驾驶员证件是否有效", 33),
    I36("tripCriteriaStatus", "trip_criteria_status", "是否达到出车标准", 34);	
    
    public final String attr;
    public final String column;
    public final String note;
    public final int index;

    ItemEnum(String attr, String column, String note, int index) {
        this.attr = attr;
        this.column = column;
        this.note = note;
        this.index = index;
    }

    public static ItemEnum getColumnByAttr(String attr) {
        for (ItemEnum t : ItemEnum.values()) {
            if (t.attr.equalsIgnoreCase(attr))
                return t;
        }
        return null;
    }
}
